<?php

define('STATIC_VER', '20160509165698');
define('TIMEZONE', 'Asia/Shanghai');

// --- APP ---

define('DEFAULT_APP', 'main');
define('DEFAULT_BIN', 'main');
define('DEFAULT_ACT', 'main');
define('SINGLE_APP', false);

// --- RSA ---

define('RSA_PUBLIC_KEY', SYS_PATH.'rsa/rsa_public_key.pem');
define('RSA_PRIVATE_KEY', SYS_PATH.'rsa/rsa_private_key.pem');
define('RSA_VERSION', '2');

// --- CROWD --- APP ---

define('APP_CROWD', 'com.caocaod.crowd');
define('APP_CROWD_VER', '1.0');
define('APP_CROWD_INFO', '新版强劲出来,不下载非好汉!');
define('APP_CROWD_URL', 'http://www.caocaod.com');
define('APP_CROWD_MUST', false);

// --- CROWD IOS --- APP ---

define('APP_CROWD_IOS_VER', '1.0');
define('APP_CROWD_IOS_INFO', '新版强劲出来,不下载非好汉!');
define('APP_CROWD_IOS_URL', 'http://www.caocaod.com');
define('APP_CROWD_IOS_MUST', false);

// --- WORK --- APP ---

define('APP_WORK', 'com.caocaod.work');
define('APP_WORK_VER', '1.0');
define('APP_WORK_INFO', '新版强劲出来,不下载非好汉!');
define('APP_WORK_URL', 'http://www.caocaod.com');

// --- WORK IOS --- APP ---

define('APP_WORK_IOS_VER', '1.0');
define('APP_WORK_IOS_INFO', '新版强劲出来,不下载非好汉!');
define('APP_WORK_IOS_URL', 'http://www.caocaod.com');

// --- 网址 ---

define('STATIC_PATH', 'http://static.caocaod.com/');

// --- STATE ---

// --- 包的状态 ---

$_STATE_BAG = [
    '0' => '待抢包',
    '1' => '待取包',
    '2' => '运送中',
    '3' => '已送达',
    '4' => '问题包',
    '5' => '无效包'
];

// --- 件的状态 ---

$_STATE_PIECE = [
    '0' => '待取件',
    '1' => '运送中',
    '2' => '已送达',
    '3' => '无效单',
    '4' => '问题单',
    '5' => '待付款'
];

$_STATE_IN_PIECE = [
    '0' => '待确认',
    '1' => '待取件',
    '2' => '已取件',
    '3' => '已集散',
    '4' => '上支线',
    '5' => '到站点',
    '6' => '上众包',
    '7' => '已下车',
    '8' => '上支线',
    '9' => '到集散',
    '10' => '待派送',
    '11' => '已送达',
    '12' => '无效单',
    '13' => '问题单',
    '14' => '待付款',
    '15' => '转运'
];

// --- 提现状态 ---

$_STATE_CASH_OUT = [
    '0' => '待提现',
    '1' => '已提现',
    '2' => '已退回'
];

// --- 件订单的付款方式 ---

$_PIECE_TYPE_PAY = [
    '0' => '企业支付',
    '1' => '线下先付',
    '2' => '线下到付',
    '3' => '微信支付',
    '4' => '支付宝'
];

// --- 件的产品类型 ---

$_PIECE_TYPE_PRODUCT = [
    '0' => '极速配'
];

// --- 订单状态 ---

$_STATE_ORDER = [
    '0' => '已下单',
    '1' => '待支付'
];

// --- 订单来源 ---

$_STATE_ORDER_FROM = [
    '0' => '微信',
    '1' => 'PC'
];

// --- 工种类型 ---

$_WORKER_TYPE = [
    '0' => '收派员',
    '1' => '集结点',
    '2' => '支线',
    '3' => 'BD',
    '4' => 'RD'
];

